
<div class="nav_bar">
    <?php $breadcrumb->trail(" > ");?>
</div>
<div class="main_box">
    <div id="orderbox">
        <div class="box">
            <ul>
                <li><span>口碑排行：</span><a href="<?php echo edp_href_link( PAGENAME_TOP_DETAIL, "&sortby=score" ); ?>">口碑最佳</a></li>
                <li><span> 参数排行：</span>
                    <a href="<?php echo edp_href_link( PAGENAME_TOP_DETAIL, "sortby=service" ); ?>">服务最佳</a>
                    <a href="<?php echo edp_href_link( PAGENAME_TOP_DETAIL, "sortby=reality" ); ?>">商品真实度最</a>
                    <a href="<?php echo edp_href_link( PAGENAME_TOP_DETAIL, "sortby=velocity" );?>">发货速度最快</a>
                    <a href="<?php echo edp_href_link( PAGENAME_TOP_DETAIL, "sortby=rate" );?>">性价比最高</a>
                </li>
                <li><span>人气排行：</span>
                    <a href="<?php echo edp_href_link( PAGENAME_TOP_DETAIL, "sortby=review_count" );?>">人气最旺</a>
                    <a href="<?php echo edp_href_link( PAGENAME_TOP_DETAIL, "sortby=review_count-7" );?>">本周最旺</a>
                    <a href="<?php echo edp_href_link( PAGENAME_TOP_DETAIL, "sortby=review_count-30" );?>">本月最旺</a>
                </li>
                <li><span> 最新加入：</span>
                    <a href="<?php echo edp_href_link( PAGENAME_TOP_DETAIL, "sortby=create_time-7" );?>">本周加入</a>
                    <a href="<?php echo edp_href_link( PAGENAME_TOP_DETAIL, "sortby=create_time-30" );?>">本月加入</a>
                    <a href="<?php echo edp_href_link( PAGENAME_TOP_DETAIL, "sortby=create_time-120" );?>">最近三个月加入</a>
                </li>
                <li><span>人群排行：</span>
                    <a href="<?php echo edp_href_link( PAGENAME_TOP_DETAIL, "sortby=group&detail=girl" );?>">MM最爱</a>
                    <a href="<?php echo edp_href_link( PAGENAME_TOP_DETAIL, "sortby=group&detail=boy" );?>">GG最爱</a>
                    <a href="<?php echo edp_href_link( PAGENAME_TOP_DETAIL, "sortby=group&detail=style_star" );?>">潮人最爱</a>
                    <a href="<?php echo edp_href_link( PAGENAME_TOP_DETAIL, "sortby=group&detail=office_lady" );?>">白领女性</a>
                    <a href="<?php echo edp_href_link( PAGENAME_TOP_DETAIL, "sortby=group&detail=student" );?>">学生</a>
                    <a href="<?php echo edp_href_link( PAGENAME_TOP_DETAIL, "sortby=group&detail=business_man" );?>">购物达人</a>
                    <a href="<?php echo edp_href_link( PAGENAME_TOP_DETAIL, "sortby=group&detail=shopping_expert" );?>">商务人士</a>
                </li>
            </ul>
        </div>
    </div>


    <div class="common_toolbar">
        <div class="common_sort_l"></div>
        <div class="common_search_title">
            <div class="common_search_title_l">
			店铺排行 >> </div>
            <form method="GET" action="<?php echo edp_href_link(PAGENAME_TOP_DETAIL);?>" id="topform">
                <input type="hidden" name="page" value="top_detail" />
                <input type="hidden" id="sortby" name="sortby" value="<?php echoPageVar($pageVars, 'sortby'); ?>" />
                <input type="hidden" id="detail" name="detail" value="<?php echoPageVar($pageVars, 'detail'); ?>" />
                <input type="hidden" id="plat_id" name="platid" value="<?php echoPageVar($pageVars, 'platid'); ?>" />
                <span class="common_search_sort">
                按照&nbsp;
                    <a href="" platid="1">淘宝</a> |
                    <a href="" platid="2">百度</a> |
                    <a href="" platid="3">拍拍</a> |
                    <a href="" platid="4">易趣</a> |
                    <a href="" platid="100">商城</a>
                    排序
                    <!--<input type="button" name="升序" value=" " class="btn_arrow_up">
                    <input type="button" name="降序" value=" " class="btn_arrow_down">
                    -->
                </span>
            </form>
        </div>
        <div class="common_sort_r"></div>
    </div>

    <div class="search_result">
        <div class="search_result_content">
            <div class="search_result_th">
                <div class="search_result_th_1 clearborder">排名</div>
                <div class="search_result_th_2">名称</div>
                <div class="search_result_th_3">总分</div>
                <div class="search_result_th_4">服务</div>
                <div class="search_result_th_5">商品真实度</div>
                <div class="search_result_th_6">发货速度</div>
                <div class="search_result_th_7">性价比</div>
            </div>
            <?php 
              $num = '1';
              foreach( $pageVars['topshops'] as $shop ) { 
            
            ?>
            <div class="search_result_tr">
                <div class="search_result_1 clearborder"><span class="store_rank h<?php if($num<=3) echo '1'; else echo '2'; ?>"><?php echo $shop['rank'];?></span></div>
                <div class="search_result_2"><a href="<?php echo edp_href_link(PAGENAME_SHOP_INFO, 'sid='.$shop['id']);?>"><?php secho( $shop['shop_name'] ); ?></a></div>
                <div class="search_result_3"><?php echo $shop['score'];?></div>
                <div class="search_result_4"><?php echo $shop['service'];?></div>
                <div class="search_result_5"><?php echo $shop['reality'];?></div>
                <div class="search_result_6"><?php echo $shop['velocity'];?></div>
                <div class="search_result_7"><?php echo $shop['rate'];?></div>
            </div>
                <?php $num ++; } ?>
        </div>
        <?php
        //page bar
        echoPageVar( $pageVars, "pagebar" );
        ?>
    </div>
</div>
